
# 库1
import time

# 库2
import database.player as player
import database.monster as monster
import database.function as function
import database.equipment as equipment

# 初始化
# 输入姓名
player.role['name'] = input('请输入你的姓名：')
time.sleep(1)

# 装备调试
player.role['weapon'] = equipment.weapon2
player.role['armor'] = equipment.armor2
player.role['ornaments'] = equipment.ornaments2

# 显示状态
function.panel_calculation(player.player0, player.role)
function.panel(player.role)
time.sleep(1)

# 遭遇战
print('你遭遇了', monster.goblin['name'], '是否加入战斗？')
if function.yon():
    function.fight(monster.goblin, player.role)
else:
    print('你逃避了，你个废物！')
